package main


import (
"fmt"
)


type State int

const (
   Master State=iota
   Slave
   None
)

func leixingFind(a interface{} ){
   defer func(){  e:= recover(); fmt.Println("error" , e)}()
   if a.(State) == Master {
     fmt.Println("ok")
   }
}

type Node struct{
    value interface{}
}

type List struct{
    p []Node
}

func (l *List)Add(in interface{}){
   n := new(Node)
   n.value= in
   l.p = append(l.p,*n)

}

func (l *List)Show(){

   for _,k := range l.p {

     fmt.Println(k.value)
   }
}


func main(){

   z := &List{p:nil}
   z.Add(10)
   z.Add(21)
   z.Add(33)
   z.Show()
}





